<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>404 页面未找到</title>
</head>
<body>

    <h1>404 页面未找到</h1>
    <p>抱歉，您要访问的页面不存在。</p>

    <div class="popup" id="popup">
        <p>您将于<span id="second">5</span>秒后跳转到首页！</p>
    </div>

    <script>
        setTimeout(function(){
            document.location.href = "index.html";
        },5000)
        var remain = 5; 
        const getSecond = document.getElementById("second");
        const countdownTimer = setInterval(()=>{
        remain--;
        getSecond.textContent = remain;
        if(remain == 0)
        {
            clearInterval(countdownTimer); // 停止倒计时
        }
        },1000)
    </script>

</body>
</html>